

file(GLOB_RECURSE SOURCES demo/demo_chainmaker/*.c
                          sdk/keypair/*.c
                          sdk/network/chainmaker/*.c
                          sdk/protocol/boatchainmaker_v2/protos/common/*.c
                          sdk/protocol/boatchainmaker_v2/*.c
                          sdk/protocol/common/http2intf/*.c
                          sdk/third-party/nghttp2/src/*.c
                          sdk/third-party/protobuf-c/src/*.c
                          sdk/utilities/*.c
                          sdk/wallet/*.c
                          vendor/common/crypto/crypto_default/aes/*.c
                          vendor/common/crypto/crypto_default/*.c
                          vendor/common/storage/*.c
                          vendor/keystore/soft/*.c
                          vendor/platform/XinYi-XY1100-R14/src/port_crypto_default/*.c
                          vendor/platform/XinYi-XY1100-R14/src/rpc/*.c)

set(include_dirs demo/demo_chainmaker/
                 sdk/include
                 sdk/protocol 
                 sdk/protocol/common/http2intf
                 sdk/protocol/boatchainmaker_v2/protos
                 sdk/third-party/nghttp2/include
                 sdk/third-party/protobuf-c/include
                 vendor/common/storage
                 vendor/common/crypto/crypto_default
                 vendor/platform/include
                 vendor/platform/XinYi-XY1100-R14/src/inet
                 vendor/platform/XinYi-XY1100-R14/src/log
                 include)

idf_component_register(SRCS ${SOURCES} 
                    PRIV_REQUIRES main
                    INCLUDE_DIRS ${include_dirs})

target_compile_options(${COMPONENT_LIB} PRIVATE -Wno-unused-const-variable)



